-
-
Notifications
You must be signed in to change notification settings - Fork 59
fix: update utcnow for python 3.12 deprecation #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
I don't quite get why the |
@bobbui Is there anything I can do to make this more mergeable? Sadly the last run here is so long ago that the logs are not accessible anymore, so I'm not sure what the problem is. But this is slowly becoming pressing as we want to update to python 3.14 soon. |
i can remove the replace(tzinfo=None). |
i have made a few minor changes to the test environment in this PR:
now all the tests pass at this instance in time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small niggles, but definitely nice work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Now how do we get @bobbui activated again?
In python3.12 we get deprecation errors due to the use of 'naive' timestamps
from utcnow. (see python/cpython#103857)
Replace with timezone.utc
See python/cpython#81669
See https://blog.miguelgrinberg.com/post/it-s-time-for-a-change-datetime-utcnow-is-now-deprecated